package com.xju.dao;

import com.xju.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    @Insert("insert into user values(#{id}, #{name}, #{gender})")
    void save(User user);

    @Select("select * from user")
    List<User> findAll();
}
